package com.example.rabbitmqtest;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author :  wudgaby
 * @Version :  since 1.0
 * @Date :  2021/5/8 15:33
 * @Desc :
 */
@Component
public class Consumer {

    @RabbitListener(queues = RabbitMQConfig.queueName)
    public void processMessage(String msg) {
        System.out.format("Receiving Message: -----[%s]----- \n", msg);
    }
}